//
//  json.cpp
//  api-server
//
//  Created by Peter Emil Jensen on 26/08/2012.
//  Copyright (c) 2012 Peter Emil Jensen. All rights reserved.
//

#include "json.h"

json::json()
{
    root = json_pack("{s:s, s:s}",
                     "status_code", "200",
                     "message", "API under construction.");
}

json::~json()
{
    delete root;
}

std::string json::dump()
{
    return json_dumps(root, JSON_INDENT(1));
}